<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1">
    <title></title>
    <meta name ="keywords" content="港珠澳头等舱">
    <meta name="description" content="港珠澳头等舱">
    <link rel="stylesheet" href="https://at.alicdn.com/t/font_234130_nem7eskcrkpdgqfr.css">
    <link rel="stylesheet" type="text/css" href="../css/public.css">
    <link rel="stylesheet" type="text/css" href="../css/sales.css">
    <script type="text/javascript" src="../js/jquery-1.12.1.min.js"></script>
    <script type="text/javascript" src="../js/fit.js"></script>
    <script type="text/javascript" src="../js/moment.min.js"></script>
    <script type="text/javascript" src="../js/schedule.js"></script>
  </head>

  <body>
    <div class="container login-container">
      <h2 class="title">销售点登录</h2>
      <ul class="login-form">
        <li>
          <span>账号</span>
          <div>
            <input type="text" name="account" class="ipt" placeholder="请输入账号" />
          </div>
        </li>
        <li>
          <span>密码</span>
          <div>
            <input type="password" name="password" class="ipt" placeholder="请输入密码" />
          </div>
        </li>
      </ul>
      <div class="btns">
        <button class="btn big-btn main-btn" id="loginBtn">登录</button>
      </div>
      <p class="login-tip">* 本登录仅提供给各销售点工作人员使用</p>
    </div>


    <script type="text/javascript" src="../js/index.js"></script>
    <script type="text/javascript">
      $("#loginBtn").bind("click",function(){
        var account = $("[name=account]").val();
        var password = $("[name=password]").val();
        if(account == ""){
          tip.show("请输入账号");
          return
        }
        if(password == ""){
          tip.show("请输入密码");
          return
        }
        //todo 提交登录信息

        // 正确则跳转
        $(location).attr('href', "salesList.html");

        // 错误则提示
        // tip.show("账号或密码错误");
      })
    </script>

  </body>
</html>
